#include <iostream>
#include <typeinfo>
#include <functional>

using namespace std;

#include "object.h"
#include"test_factory.h"

int main(){

    map<string, int> m1;
    m1["1234"] = 1234;
    m1["1234"] = 5678;
    cout << m1["1234"] << endl;
    m1.insert(make_pair("1234",9999));   // 插入失败, 值 还是 5678,
    cout << m1["1234"] << endl;


    CClassTest* test = static_cast<CClassTest*>(CObjectFactory::createObject("CClassTest"));
    CClassTest2* test2 = static_cast<CClassTest2*>(CObjectFactory::createObject("CClassTest2"));

    delete test;
    delete test2;

    



    return 0;
}
